package EasyPoi;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import lombok.AllArgsConstructor;


import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {

    private Long id;
    @Excel(name="姓名",width = 20)
    private String name;
    @Excel(name="年龄",width = 20)
    private Integer age;
    @Excel(name="性别",replace = { "男_true", "女_false" },width = 20)
    private Boolean sex;
    @Excel(name = "日期", format = "yyyy-MM-dd",width = 40)
    private Date createData;
    @ExcelEntity
    private Teacher teacher;
    @Excel(name = "图片", type = 2 ,savePath="D:\\图片.jpg",width = 40 , height = 20)
    private String image;
}
